PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-03-19 10:11:25.923726+00:00 (UTC)
In US/Central Time, this is 2024-03-19 05:11:25.923726-05:00
## Visualize Principal Component 1
pc1, loadings = pca_index.pca(dfn, module="scikitlearn")
pc1.plot();
../../_images/64877956ccf09d12653efde3bd630018986c2f802027aa9a17d2f6301ad3fa4a.png
# Simple version
fig = px.line(pc1)
fig.show()
vix = df.loc[:,['VIX']]
vix.plot()
<Axes: xlabel='DATE'>
../../_images/e8ca002499b8f8093f0e15f4428b86573b7408eea86ff1213bf0633d1ba5e852.png
fig = px.line(vix)
fig.show()
../../_images/b871589575469d24bd132da0ada06e5b597865d6c030eb8e578ce9166eebed4a.png